#ifndef __HPBAR_H__
#define __HPBAR_H__

#include "cocos2d.h"

USING_NS_CC;

class HpBar :public Sprite
{
public:
    bool init(const char* background, const char* fillName);
    static HpBar* create(const char* background, const char* fillName);
    void setFill(ProgressTimer* fill) { _fill = fill; }
    void setProgress(float percentage) { _fill->setPercentage(percentage); }
private:
    ProgressTimer* _fill;
};
#endif